Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 156c2d4bd2c94a803a787cf8facf8ef0128ada97


Parents : 93aa171
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-01-25T16:20:40+01:00

Fix traffic counter entries

Changes

1 files changed, 4 insertions(+), 4 deletions(-)


Diff

diff --git a/sbapp/sideband/sense.py b/sbapp/sideband/sense.py
index e9edc9a2..efddf148 100644
--- a/sbapp/sideband/sense.py
+++ b/sbapp/sideband/sense.py
@@ -2527,10 +2527,10 @@ class RNSTransport(Sensor):
"transport_enabled": RNS.Reticulum.transport_enabled(),
"transport_identity": RNS.Transport.identity.hash,
"transport_uptime": time.time()-RNS.Transport.start_time if RNS.Reticulum.transport_enabled() else None,
- "traffic_rxb": RNS.Transport.traffic_rxb,
- "traffic_txb": RNS.Transport.traffic_txb,
- "speed_rx": RNS.Transport.speed_rx,
- "speed_tx": RNS.Transport.speed_tx,
+ "traffic_rxb": ifstats["rxb"],
+ "traffic_txb": ifstats["txb"],
+ "speed_rx": ifstats["rxs"],
+ "speed_tx": ifstats["txs"],
"memory_used": rss,
"ifstats": ifstats,
"link_count": r.get_link_count(),


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────